﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Follow : MonoBehaviour
{
    public Transform TargetTrans;
    private Transform trans;
    public Vector3 offset;
    // Start is called before the first frame update
    void Start()
    {
        trans = transform;
    }

    // Update is called once per frame
    void Update()
    {
        trans.position = TargetTrans.position+offset ;
        transform.position = trans.position;
    }
}
